package com.speoki.springboot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {
    int deleteByPrimaryKey(Integer sno);

    int insert(Student record);

    int insertSelective(Student record);
List<Student> getAll();
    Student selectByPrimaryKey(Integer sno);
List<Student> selectByPreAndSex(String prename,Integer ssex);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
}